package com.oritsh.dicom.dcmtk;

import com.oritsh.dicom.dcmtk.utils.NativeUtils;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: zarra
 * Date: 14-2-10
 * Time: 下午4:30
 * Copyright Shanghai Orient Rain Information Technology Co.,Ltd.
 */
public class DcmtkInterface {
    static{
        try{
            System.loadLibrary("dcmtk");
        }catch (UnsatisfiedLinkError e){
            try {
                NativeUtils.load("dcmtk");
            } catch (IOException e1) {
                e1.printStackTrace();
            }
        }
    }

    static public  int imageDecode(String srcFileName,String destFileName){
        return __DcmtkWrap__.__imageDecode__(srcFileName, destFileName);
    }
    static public  int imageEncode(String srcFileName,String destFileName,String tsuid){
        return __DcmtkWrap__.__imageEncode__(srcFileName, destFileName, tsuid);
    }
}
